package br.com.telas;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTextField;

import br.com.modelo.Igreja;
import br.com.modelo.Membro;

public class TelaDeAcesso extends JFrame implements ActionListener{

	JTextField visor;
	JTextField visor2;
	JButton bEntrar, bCadastrar , tEntrar, tCadastrar;
	String nome = "", sobrenome = "", contribuicao = "";
	
	public TelaDeAcesso(){
		super("TelaDeAcesso");
		this.setSize(253, 350);
		this.setLocationRelativeTo(null);
		this.setLayout(null);
		
		visor = new JTextField();
		visor.setBounds(50, 60, 150, 30);
		visor.setEnabled(false);
		this.add(visor);
		visor2 = new JTextField();
		visor2.setBounds(50, 100, 150, 30);
		visor2.setEnabled(false);
		this.add(visor2);
		
		bEntrar = new JButton("Entrar");
		bEntrar.setBounds(63, 140, 100, 20);
		bEntrar.addActionListener(this);
		this.add(bEntrar);
		bCadastrar = new JButton("Cadastrar");
		bCadastrar.setBounds(63, 180, 100, 20);
		bCadastrar.addActionListener(this);
		this.add(bCadastrar);
		this.setVisible(true);
	}
	
	public static void main(String[] args) {
		new TelaDeAcesso();
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getSource() == bEntrar){
			
		}else if(e.getSource() == bCadastrar){
			
		}
		
	}
}
